package com.ddyx.monitor.service.impl;


import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ddyx.monitor.entity.DomainServer;
import com.ddyx.monitor.mapper.DomainServerMapper;
import com.ddyx.monitor.service.IMonitorServerService;



@Service
public class monitorServerServiceImpl implements IMonitorServerService {
	
	@Autowired
	private DomainServerMapper domainServerMapper;

	@Override
	public Map<String, Object> monitorServer() {
		Map<String, Object> map=new HashMap<String, Object>();
		try {
			DomainServer bean=new DomainServer();
			
			domainServerMapper.selectDomainServerList(bean);
		} catch (Exception e) {
			map.put("code", 9999);
			map.put("msg", "数据库查询异常");
		}
		map.put("code", 1000);
		map.put("msg", "正常");
		return map;
	}
}
